package com.kindergarten.pojo;

import com.alibaba.druid.filter.AutoLoad;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kindergarten.utils.DateUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "notice")
public class Notice extends PagePojo{

    @TableId(value = "ID",type = IdType.AUTO)
    private Integer id;

    @TableField(value = "title")
    private String title;
    private String content;
    private String createTime= DateUtils.now(); //默认值
    private Integer del=0;//默认值

    //扩展属性
    @TableField(exist = false)
    private String startTime;

    //扩展属性
    @TableField(exist = false)
    private String endTime;
}
